<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="demo/layout/header :: head(~{::title},~{::link})">
    <meta charset="UTF-8">
    <title>我是index头部</title>
    <!-- 引入私有的css -->
    <link rel="stylesheet" th:href="@{/css/index.css}">
</head>
<body>

    <div th:insert="demo/layout/footer :: copyright"></div>
    <div th:replace="demo/layout/footer :: copyright"></div>
</body>
</html>